#include <stdio.h>

int main()
{
	int C,S,a,b;
	scanf("%d%d",&a,&b);
	printf("C:%d\n",2*(a+b));
	printf("S:%d",a*b);
	return 0;
}
